package com.cxx.purchasecharge.dal;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.cxx.purchasecharge.core.model.persistence.MemorialDay;
import com.cxx.purchasecharge.dal.common.GenericCRUDDao;

@Transactional
public interface MemorialDayDao extends GenericCRUDDao <MemorialDay, Long>
{

    public MemorialDay findById (long id);

    @Query (value = "select m from MemorialDay m where m.customerId=?1")
    public List <MemorialDay> findByCustomerId (long customerId);

}
